#ifndef __CONFIG_H
#define __CONFIG_H
#define BAUD 115200//波特率宏定义
#define uint unsigned int  
#define uchar unsigned char 
extern unsigned char step;//步骤控制
extern unsigned char shujubuf[4];//数据缓存 0存温度,1存湿度,2存LED,3存REL

extern unsigned char  readtem[8];   //读温度，02从机地址，03读，20 00寄存器地址，00 01寄存器数量，校验码
extern unsigned char  readhum[8];  //读湿度，02从机地址，03读，20 00寄存器地址，00 01寄存器数量，校验码


extern unsigned char  write_CHASSIS0[8];  //写小车底盘断电，01从机地址，06写，00 01寄存器地址，00 01寄存器数量，校验码
extern unsigned char  write_CHASSIS1[8];  //写小车底盘上电，01从机地址，06写，00 01寄存器地址，00 01寄存器数量，校验码

extern unsigned char  write_ROUTER0[8];  //写路由器断电，01从机地址，06写，00 02寄存器地址，00 01寄存器数量，校验码
extern unsigned char  write_ROUTER1[8];  //写路由器上电，01从机地址，06写，00 02寄存器地址，00 01寄存器数量，校验码

extern unsigned char  write_1SWL0[8];  //写激光雷达1断电，01从机地址，06写，00 03寄存器地址，00 01寄存器数量，校验码
extern unsigned char  write_1SWL1[8];  //写激光雷达1上电，01从机地址，06写，00 03寄存器地址，00 01寄存器数量，校验码

extern unsigned char  write_2SWL0[8];  //写激光雷达2断电，01从机地址，06写，00 04寄存器地址，00 01寄存器数量，校验码
extern unsigned char  write_2SWL1[8];  //写激光雷达2上电，01从机地址，06写，00 04寄存器地址，00 01寄存器数量，校验码

extern unsigned char  write_16SWL0[8];  //写16线激光雷达断电，01从机地址，06写，00 05寄存器地址，00 01寄存器数量，校验码
extern unsigned char  write_16SWL1[8];  //写16线激光雷达上电，01从机地址，06写，00 05寄存器地址，00 01寄存器数量，校验码

extern unsigned char  write_CAMERA0[8];  //写鱼眼相机断电，01从机地址，06写，00 06寄存器地址，00 01寄存器数量，校验码
extern unsigned char  write_CAMERA1[8];  //写鱼眼相机上电，01从机地址，06写，00 06寄存器地址，00 01寄存器数量，校验码

extern unsigned char  write_REIN0[8];  //写预留接口断电，01从机地址，06写，00 07寄存器地址，00 01寄存器数量，校验码
extern unsigned char  write_REIN1[8];  //写预留接口上电，01从机地址，06写，00 07寄存器地址，00 01寄存器数量，校验码

extern unsigned char  write_Me_ARM0[8];  //写机械臂断电，01从机地址，06写，00 08寄存器地址，00 01寄存器数量，校验码
extern unsigned char  write_Me_ARM1[8];  //写机械臂上电，01从机地址，06写，00 08寄存器地址，00 01寄存器数量，校验码


//extern unsigned int Number_Down[Down_Task];     //延时-- 数组


#endif
